package com.yohann.course_service.service;

import com.yohann.course_service.entity.Video;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * <p>
 * 小节 服务类
 * </p>
 *
 * @author Yohann
 * @since 2020-10-18
 */
public interface VideoService extends IService<Video> {

    /**
     * 删除章节对应的所有小节信息
     *
     * @param chapterId
     * @return
     */
    void removeAllVideo(int chapterId);

    /**
     * 删除小节
     *
     * @param id
     */
    void deleteById(int id);
}
